<template>
  <div>
      <div class="swiper-wrapper g-main">
        <div class="swiper-slide">
			<img src="http://img1.pianor.com/other/2018/10/08/2018100808463491781.jpg">
		</div>
        <div class="swiper-slide">
            <img src="http://img1.pianor.com/other/2017/07/28/2017072812035385858.jpg">
        </div>
        <div class="swiper-slide">
            <img src="http://img1.pianor.com/other/2017/07/28/2017072812035385858.jpg">
        </div>
    </div>
    <!-- 如果需要分页器 -->
    <div class="swiper-pagination"></div>
  </div>
</template>

<script>
import Swiper from "swiper"
import "swiper/css/swiper.min.css"
export default {
    mounted(){

        this.initPage();
    },
    methods:{
        initPage(){
            new Swiper ('.swiper-container', {
            direction: 'vertical', // 垂直切换选项
            loop: true, // 循环模式选项
            autopaly:{
                delay:1000,
                disablOnInteraction:false,
            },
            
    // 如果需要分页器
    pagination: {
      el: '.swiper-pagination',
    },
    })
    }
    }
}
</script>

<style lang="less"scoped>
@import "../../assets/styles/comm.less";
.g-main{
    width: 750/@u;
    height: 300/@u;
}
</style>
